package com.ssy.lingxi.order.model.vo.basic.request;

import com.ssy.lingxi.common.model.vo.PageVO;
import com.ssy.lingxi.order.handler.annotation.DateStringFormatAnnotation;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 分页查询订单列表接口参数
 * @author 万宁
 * @version 2.0.0
 * @date 2021-07-19
 */
public class DeliveryPlanProductPageVO extends PageVO implements Serializable {

    /**
     * 计划周期起始日期，格式为yyyy-MM-dd
     */
    @DateStringFormatAnnotation
    private String startDate;

    /**
     * 计划周期结束日期，格式为yyyy-MM-dd
     */
    @DateStringFormatAnnotation
    private String endDate;

    /**
     * 会员Id
     */
    @NotNull(message = "会员id不能为空")
    private Long memberId;

    /**
     * 会员角色Id
     */
    @NotNull(message = "角色id不能为空")
    private Long roleId;

    /**
     * 1：查询供应商角色，2：查询采购商角色
     */
    @NotNull(message = "角色类型不能为空")
    private Integer roleType;

    /**
     * 1：b2b，2：srm
     */
    @NotNull(message = "订单类型不能为空")
    private Integer orderType;

    public Integer getOrderType() {
        return orderType;
    }

    public void setOrderType(Integer orderType) {
        this.orderType = orderType;
    }

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    public Integer getRoleType() {
        return roleType;
    }

    public void setRoleType(Integer roleType) {
        this.roleType = roleType;
    }

    public String getStartDate() {
        return startDate;
    }

    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

}
